import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsNumber, IsUUID } from 'class-validator';

export class FollowDto {
  @ApiProperty({
    description: '用户Id',
    example: 0,
  })
  @IsNumber()
  @IsNotEmpty({ message: '用户ID不可为空' })
  user: number;

  @ApiProperty({
    description: '关注者Id',
    example: 1,
  })
  @IsNumber()
  @IsNotEmpty({ message: '关注者ID不可为空' })
  target: number;
}
